package com.heima.test5.domin;

import java.util.ArrayList;

public class Book {
    private String name;
    static private int count;

    public Book() {
        count++;
    }

    public Book(String name) {
        this.name = name;
        count++;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void countBook() {
        System.out.println("一共创建了" + count + "本书");
    }
}
